package chat.clientToServerMessage;

import chat.server.ClientThread;
import chat.server.Server;

/**
 * Text Message sent by a Client
 * @author Marius Eichenberg
 *
 */
public class TextToServerMessage implements ClientToServerMessage {
	
	private static final long serialVersionUID = 1L;
	private String text;

	
    public TextToServerMessage(String text) {
    	this.text = text;
    }

    
    public String getText() {
    	return text;
    }

    
	@Override
	public void processOnServer(Server server, ClientThread ct) {
		server.send(this, ct);
	}
}